<?php $this->load->view('layout/header_data_form');?>
<?php $this->load->view('layout/logo');?>
<div id="wrap">
  <form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
    <table border="0" cellpadding="5" cellspacing="0">
      <tr>
        <td width="550" align="left" valign="top"><table border="1" cellpadding="7" cellspacing="0" style="border-collapse:collapse;" bordercolor="#CCCCCC";>
          <tr>
            <td width="20" align="center" class="table-title">No.</td>
            <td width="300" align="left" class="table-title">Document Name</td>
            <td width="40" align="center" class="table-title">View</td>
            <td width="40" align="center" class="table-title">Delete</td>
            </tr>
          <?php foreach($documents as $k => $v):?>  
          <tr>
            <td align="center"><?php echo ($k+1);?></td>
            <td align="left"><a title="<?php echo $v->name;?>" href="<?php echo base_url().'document/view/'.$v->id;?>"><?php echo $v->name;?></a></td>
            <td align="center"><a href="<?php echo base_url().'document/view/'.$v->id;?>"><img src="<?php echo img_link('viewIcon.png');?>" alt="View" width="25" height="20" border="0" /></a></td>
            <td align="center"><a href="#"><img src="<?php echo img_link('deletefile.gif');?>" alt="Delete" width="25" height="20" border="0" /></a></td>
          </tr>
          <?php endforeach;?>
          <tr>
          	<td colspan="6">
          		<?php echo $pagnav;?>
          	</td>
          </tr>
        </table>
        </td>
        <td align="left" valign="top">
        
        <!--<fieldset style="width:300px; border:#999999 1px solid;"> <legend> <strong>Add New File</strong> </legend>
          <table border="0" cellpadding="7" cellspacing="0">
          <tr>
            <td align="right"><strong>Browse:</strong></td>
            <td><input name="browse" type="file" class="field" id="browse" /></td>
          </tr>

          <tr>
            <td align="right">&nbsp;</td>
            <td><a href="#" class="btn add">Add</a></td>
          </tr>
        </table>
         </fieldset>-->        </td>
      </tr>
      <tr>
        <td align="left" valign="top"><table border="0" cellpadding="7" cellspacing="0">
          <tr>
            <td align="left"><a href="JavaScript:window.close();"><img src="<?php echo img_link('cwindow.jpg');?>" alt="Close Window" width="82" height="15" border="0" /></a></td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td align="left" valign="top">&nbsp;</td>
      </tr>
    </table>
    
   
    
  </form>
  
  
</div>
<?php $this->load->view('layout/footer_data_form');?>